package com.xxmw.transaction.mapper.brick;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xxmw.transaction.model.brick.BrickOrder;
import com.xxmw.transaction.vo.BrickOrderVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.Map;

/**
 * @author luowenliang
 * @since 2020/2/14 16:01
 */
public interface BrickOrderMapper extends BaseMapper<BrickOrder> {

    Map<String, String> userTotalProfit(@Param("username") String username, @Param("start") Date start, @Param("end")Date end);

    Page<BrickOrderVo> pageListByUserAndBrickId(Page<BrickOrderVo> page, @Param("username") String username, @Param("brickId") Long brickId);
}
